import SearchInstance from '@renderer/pages/SearchInstance'
import App from '../App'
import React from 'react'
import { createHashRouter } from 'react-router-dom'

const Setting = React.lazy(() => import('@renderer/pages/Setting'))

const routes = [
  {
    path: '/',
    element: <App />,
    title: 'app',
    children: [
      {
        index: true,
        element: <SearchInstance />
      },
      {
        path: '/setting',
        element: <Setting />,
        title: '配置'
      }
    ]
  }
]
export { routes }
export default createHashRouter(routes) as any
